<template>
    <div class="main">
        <div class="wrapper">
            <div class="head">
                <span class="title">{{ this.title || "" }}</span>
                <span class="advtitle">{{ this.advTitle || "" }}</span>
            </div>
            <div class="content">
                <slot></slot>
                <!-- {this.props.children} -->
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "Panel",
    props: {
        title: {
            type: String,
            default() {
                return "";
            },
        },
        advTitle: {
            type: String,
            default() {
                return "";
            },
        },
    },
};
</script>

<style lang="scss" scoped>
.main {
    width: 100%;
    height: 100%;
    position: relative;
}
.wrapper {
    height: 100%;
}

.head {
    /* height: px; */
    height: 48px;
    display: flex;
    line-height: 48px;
    opacity: 0.85;
    /* border-left: 3px solid #05D3F7;
     padding-left: 5px;
     background-image: linear-gradient(to right, #0E4373 0%, transparent 80% ); */
    background-image: url("../../../../../static/images/ui/panel-head.png");
    background-size: cover;
    span {
        display: inline-block;
        font-size: 18px;
        height: 100%;
        line-height: 26px;
        // margin-left: 55px;
    }

    .title {
        color: #ffffff;
        padding: 0px 4px;
        margin-left: 51px;
        margin-top: 14px;
        font-size: 20px;
        font-family: PangMenZhengDao;
        color: #ffffff;
        line-height: 23px;
    }

    .advtitle {
        color: rgba(255, 255, 255, 0.8);
        padding: 0px 4px;
        font-size: 0;
        opacity: 0;
        width: 0px;
    }
}

.content {
    height: calc(100% - 46px);
    //border: 1px solid red;
}
</style>
